package com.adu.demo.service.Impl;

import java.util.List;
import com.adu.demo.domain.SysUser;
import com.adu.demo.mapper.SysUserMapper;
import com.adu.demo.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
                                            
@Service
public class SysUserService implements ISysUserService{
    @Autowired
    private SysUserMapper sysuserMapper;

    @Override
    public List<SysUser> getList(SysUser sysuser){
        return sysuserMapper.getList(sysuser);
    }
    @Override
    public SysUser getById(Long id){
        return sysuserMapper.getById(id);
    }
    @Override
    public int save(SysUser sysuser){
        return sysuserMapper.save(sysuser);
    }
    @Override
    public int deleteById(Long id){
        return sysuserMapper.deleteById(id);
    }
    @Override
    public int deleteByIds(Long[] ids){
        return  sysuserMapper.deleteByIds(ids);
    }
    @Override
    public int update(SysUser sysuser){
        return sysuserMapper.update(sysuser);
    }
}